]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: don't fire flash if we failed to take picture
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 9 Nov 2012 18:13:22 +0000 (13:13 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 26 Nov 2012 19:09:07 +0000 (14:09 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=688004

js/ui/shellDBus.js

index 7a625af3703c2d3d612087905870f0495a182a3c..b4d896615bcce1567231db4ea155ea3a1de69735 100644 (file)
@@ -111,7 +111,7 @@ const GnomeShell = new Lang.Class({
     },
 
     _onScreenshotComplete: function(obj, result, area, flash, invocation) {
-        if (flash) {
+        if (flash && result) {
             let flashspot = new Flashspot.Flashspot(area);
             flashspot.fire();
         }